package com.ruoyi.main.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 角色管理对象 main_role
 * 
 * @author chao
 * @date 2024-07-23
 */
public class MainRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色ID */
    private Long id;

    /** 角色姓名 */
    @Excel(name = "角色姓名")
    private String name;

    /** 角色电话 */
    @Excel(name = "角色电话")
    private String phone;

    /** 角色地址 */
    @Excel(name = "角色地址")
    private String address;

    /** 所属岗位 */
    @Excel(name = "所属岗位")
    private String postName;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setPostName(String postName) 
    {
        this.postName = postName;
    }

    public String getPostName() 
    {
        return postName;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("postName", getPostName())
            .append("common", getCommon())
            .toString();
    }
}
